An IDL object can be wrapped for use in a COM application using the Export Bridge Assistant as described in Using the Export Bridge Assistant. This chapter provides several Visual Basic .NET examples that use custom COM export objects. These include:
Note: You can quickly incorporate the processing power of IDL in a COM application by including the pre-built COM connector wrapper object in your external application. Use this option if you do not need custom methods or an interactive drawing surface. See Using the Connector Object for examples.
The general process for each of these examples involves the following:
See Writing IDL Objects for Exporting for information on how to create custom IDL objects that can be successfully exported using the Export Bridge Assistant. There are important object method and data type requirements that must be met.
When you distribute an application, you will also need to share:
Any .pro or .sav files included with your application must be located in the IDL path.
It can be challenging to determine what is happening in the IDL process associated with a wrapper object without the debugging features of the IDL Workbench. For access to valuable debug information, consider using the IDL_BRIDGE_DEBUG environment variable, described in Debugging COM Wrapper Objects.